const sequelize = require("../db");
const DataTypes = require("sequelize");
const Courses = sequelize.define("courses", {
  cNum: {
    type: DataTypes.STRING,
    comment: "课程号"
  },
  teacherId: {
    type: DataTypes.INTEGER,
    comment: "教师id"
  },
  gradeclass: {
    type: DataTypes.STRING,
    comment: "班级"
  },
  name: {
    type: DataTypes.STRING,
    comment: "名字"
  }
});

module.exports = Courses;
